from flask import Blueprint
from flask_restful import Api
from comment.utils.output import output_json

# 初始化消息模块的蓝图
card_bp = Blueprint('cards', __name__, url_prefix='/card')
card_api = Api(card_bp)

# 使用我们自定义json格式，替代装饰器的写法
card_api.representation('application/json')(output_json)

from financial.resources.card.card_resource import *

card_api.add_resource(Card_Resource, '/card', endpoint='card')